﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_DoHoa_Nhom13.ShapeLib
{
    public class MyArcShape : MyShape
    {
        float startAngle, sweepAngle;
        
        public MyArcShape(float newStartAngle, float newSweepAngle)
        {
            startAngle = newStartAngle;
            sweepAngle = newSweepAngle;
        }

        public override MyShape Clone()
        {
            MyShape copy = new MyArcShape(startAngle,sweepAngle);
            copy.Copy(this);
            return copy;
        }

        protected override void ActualDraw(MyGraphic graphic)
        {
            int top,left,width,height;
            this.SetConfig(out top,out left,out width,out height);
            graphic.DrawArc(left, top, width, height,startAngle,sweepAngle);
        
        }
    }
}
